package cn.szzsi._admin;

import cn.szzsi.common.kit.SystemConfigUtil;
import cn.szzsi.common.model.Member;
import cn.szzsi.common.model.Message;
import com.jfinal.aop.Clear;
import com.jfinal.kit.JsonKit;
import com.jfinal.kit.Ret;
import com.jfinal.kit.StrKit;
import com.jfinal.plugin.ehcache.CacheKit;

import javax.servlet.http.Cookie;
import java.util.*;

/**
 * 前台类 - 会员中心
 * 
 */
public class MemberCenterController extends BaseAdminController<Member> {


	public void profile(){//会员中心
		Member member = getLoginMember();
		setAttr("loginMember", member);
		setAttr("unreadMessageCount", Message.dao.getUnreadMessageCount(member));
		setAttr("systemConfig", SystemConfigUtil.getSystemConfig());
		setAttr("base", getRequest().getContextPath());
		//检测是否是商户
		setAttr("shopId",getAttr("shopId"));
		render("member_business_profile.html");

	}

}
